<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</style>
</head>

<body>
  <script>
    // 输出语句
  document.write("Hello, World!")
  document.write("<h1>This is a heading</h1>")
  console.log("This is a console log")
//   #控制台打印
// 输入语句
   prompt("请输入你的名字：")
  </script>
</body>
</html> 